import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.uni.domain.DcGoods;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


public class test {
    public static void main(String[] args) {
        JSONArray jsonArray=new JSONArray();
        DcGoods dcGoods = new DcGoods();
        dcGoods.setNum(2);
        dcGoods.setDesc("aasda");
        jsonArray.add(dcGoods);
        System.out.println(jsonArray.toString());

    }
}
